package main

import (
	"log"

	"notabug.org/BigWaffleMonster/tg-bot"
	"notabug.org/BigWaffleMonster/tg-bot/pkg/handler"
	"notabug.org/BigWaffleMonster/tg-bot/pkg/repository"
	"notabug.org/BigWaffleMonster/tg-bot/pkg/service"
)

func main() {
	srv := new(encryptionserver.Server)

	repos := repository.NewRepository()
	services := service.NewService(repos)
	handlers := handler.NewHandler(services)

	if err := srv.Run("3001", handlers.InitRoutes()); err != nil {
		log.Fatalf("Error occured while running server: %s", err.Error())
	}
}
